package com.hdoit.apollo.logical.billing.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.apollo.logical.billing.model.Billing;
import com.hdoit.apollo.logical.viewmodel.billing.BillingSearch;
import com.hdoit.apollo.logical.viewmodel.billing.BillingStat;
import com.hdoit.apollo.logical.viewmodel.billing.BillingStatForPC;
import com.hdoit.apollo.logical.viewmodel.shop.GatheringStat;
import com.tennetcn.data.dao.base.IMapper;
import com.tennetcn.data.message.PagerModel;

/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 10:36:26
 * @comment
 */
@Repository(value="billingMapper")
public interface BillingMapper extends IMapper<Billing>{

	public List<Billing> getBillingInfoByCargoId(@Param("cargoId")String cargoId);

	public Billing getBillingByKey(@Param("key") String key);

	public List<Billing> getBillingInfoListByCustomerId(@Param("customerId") String customerId);

	public BillingStat getBillingStat(@Param("search") BillingSearch search);
	
	public int queryCountMPForPc(@Param("search")BillingSearch search);

	public List<Billing> queryListMPForPc(@Param("search") BillingSearch search,@Param("pager") PagerModel pagerModel);

	public BillingStatForPC queryStat(@Param("search") BillingSearch search);

	public GatheringStat queryGatheringStat(@Param("search") BillingSearch search);

	public List<Billing> queryListMPForWeChat(@Param("search")BillingSearch search,@Param("pager") PagerModel pagerModel);

}
